import IconFont from '@/components/IconFont';
import { CheckCircleFilled, MinusCircleFilled, PlayCircleFilled, RedoOutlined, UndoOutlined } from '@ant-design/icons';
import { Tooltip } from 'antd';
const items = {
    0: {
        value: 0,
        statusName: '未开始',
        actionName: '开始',
        key: "undo",
        color: 'rgba(153, 153, 153,1)',
        icon: (
            <PlayCircleFilled />
        ),
    },
    1: {
        value: 1,
        statusName: '进行中',
        actionName: '完成',
        key: "doing",
        color: 'green',
        icon: <CheckCircleFilled />,
    },
    2: {
        value: 2,
        statusName: '已完成',
        color: '#3587C9',
        key: "done",
        icon: (
            <Tooltip title="已完成">
                <IconFont type="icon-yiwancheng" />
            </Tooltip>
        ),
    },
    3: {
        value: 3,
        statusName: '已回收',
        actionName: '还原',
        color: '#ff4800',
        key: "reset",
        icon: (
            <Tooltip title="还原">
                <RedoOutlined />
            </Tooltip>
        ),
    },
    4: {
        value: 4,
        statusName: '已挂起',
        color: '#ff4800',
        key: "suspend",

        icon: (
            <Tooltip title="还原">
                <MinusCircleFilled />
            </Tooltip>
        ),
    },
}


const statusConf = {
    0: {
        text: '未开始',
        color: 'rgba(153, 153, 153,0.5)',
    },
    1: {
        text: '进行中',
        color: 'green',
    },
    2: {
        text: '已完成',
        color: '#3587C9',
    },
    3: {
        text: '已延期',
        color: '#ff4800',
    },
};

export {
    items,
    statusConf
}